libxl: fix out-of-memory error handling in libxl_list_cpupool
authorMatthew Daley <mattjd@gmail.com>
Tue, 10 Sep 2013 10:18:46 +0000 (22:18 +1200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 10 Oct 2013 14:49:54 +0000 (15:49 +0100)
commit4c37ed562224295c0f8b00211287d57cae629782
tree338d1d95bf38264cd3dfc4ed2c1274008e238b40
parent3cd10fd21220f2b814324e6e732004f8f0487d0a
libxl: fix out-of-memory error handling in libxl_list_cpupool

...otherwise it will return freed memory. All the current users of this
function check already for a NULL return, so use that.

Coverity-ID: 1056194

This is CVE-2013-4371 / XSA-70

Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c